<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue入门</title>
	</head>
	<body>
		<h1>vue入门案例</h1>
		<div id="app">
			<h3>{{msg}}</h3>
			<h3>{{i}}</h3>
			<button @click="add">增加</button>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			//创建vue对象
			const app = new Vue({
				el: "#app",
				data:{
					msg: "你好vue js",
					i:100
				},
				methods:{
					add(){
						this.i++
					}
				}
				})
		</script>
	</body>
</html>
